package com.bluesky.jwf.component.window;

public class Event {

	public static String EXIT_QUEUE = "EXIT_QUEUE";

	private String componentId;
	private String name;

	

	public Event(String componentId, String name) {
		this.componentId = componentId;
		this.name = name;
		

	}

	public boolean isExitQueueEvent() {
		return EXIT_QUEUE.equals(name);
	}

	public String getComponentId() {
		return componentId;
	}

	public void setComponentId(String componentId) {
		this.componentId = componentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	

	@Override
	public String toString() {

		return String.format("%s.%s()", componentId, name);
	}
}
